home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The World of Computer Software
/
The World of Computer Software.iso
/
dfpp01.zip
/
DESKTOP.CPP
< prev
next >
Wrap
C/C++ Source or Header
|
1992-11-21
|
656b
|
46 lines
// --------------- desktop.cpp
#include <new.h>
#include "desktop.h"
DeskTop desktop;
#ifdef MSC
int NoMemory(unsigned int)
{
exit(-1);
return 0;
}
#else
void NoMemory()
{
exit(-1);
}
#endif
DeskTop::DeskTop()
{
apwnd = infocus = firstcapture = focuscapture = NULL;
#ifdef MSC
_set_new_handler(&NoMemory);
#else
set_new_handler(NoMemory);
#endif
syscursor.Hide();
}
DeskTop::~DeskTop()
{
syscursor.Show();
}
Bool DeskTop::DispatchEvents()
{
syskeyboard.DispatchEvent();
sysmouse.DispatchEvent();
sysclock.DispatchEvent();
return (Bool) (apwnd != NULL);
}